package com.example.tianyidemo.service.impl;

import com.example.tianyidemo.Mapper.AddCommentMapper;
import com.example.tianyidemo.service.AddcommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class Addcommentimpl implements AddcommentService {
    @Autowired
    private AddCommentMapper addCommentMapper;
    @Override
    public boolean addcomment(String commentsContent, int commentsUserID) {
        int result = addCommentMapper.addcomments(commentsContent,commentsUserID);
        return result>0;
    }
}
